package com.fileupload.fileupload.controller;

import com.fileupload.fileupload.service.ExportExcelDateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/export")
public class ExportExcelDateController {
    @Autowired
    private ExportExcelDateService exportExcelDateService;
    @GetMapping("/excel")
    public ResponseEntity<String> exportExcel() {
        exportExcelDateService.selectStream();
        return new ResponseEntity<>("导出任务正在执行请稍后", HttpStatus.OK);
    }
}
